package com.whut.customer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.whut.customer.dao.SysRoleMapper;
import com.whut.customer.entity.SysRole;
import com.whut.customer.service.ISysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单表 服务实现类
 * </p>
 *
 * @author author
 * @since 2021-01-23
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

    @Override
    public List<SysRole> getUserRolesByUserId(Long id) {
        return baseMapper.getUserRolesByUserId(id);
    }

}
